Skip to content

Conversation

@alexbainter
Copy link
Collaborator

@alexbainter alexbainter commented Jan 12, 2026

Closes #151.

Adds JavaScript to automatically select a file format for DocumentationItem URLs in the schema management form.

Video below shows README format automatically changing to "Markdown" when a URL ending in .md is entered, then changing to "Plaintext" when the URL changes to .txt. Next, a documentation item format similarly changing to "Plaintext" when and URL ending in .txt is entered. Finally, the user manually changes the documentation item format select, which causes further changes to the URL to be ignored.

Screencast.From.2026-01-12.17-12-19.webm

Changes are also ignored when the URL field is initialized with a value, like when editing an existing schema.

@alexbainter alexbainter requested a review from lisad January 12, 2026 23:24
@alexbainter alexbainter merged commit 0bbc18a into main Jan 13, 2026
8 checks passed
@alexbainter alexbainter deleted the alex-151-safe-auto-format-selection branch January 13, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auto-select README format when a README url is entered

2 participants